/*
 * @Description: 删除对象中值为空的属性
 * @Autor: lcz
 * @Date: 2022-08-19 17:18:00
 * @LastEditors: lcz
 * @LastEditTime: 2022-08-19 17:27:07
 */
export function deleteEmptyProperty<T>(obj: T): T {
  for (const key in obj) {
    if (obj[key] as any === '') {
      delete obj[key];
    }
  }

  return obj;
}